﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WOS.Logging
{
    public sealed class LogAttachment
    {
        #region Private Fields
        private readonly string name;
        private readonly byte[] data;
        private readonly string type;
        #endregion
        #region Constructors
        public LogAttachment(string name, byte[] data)
        {
            this.name = name;
            this.data = data;
            this.type = String.Empty;
        }

        public LogAttachment(string name, byte[] data, string type)
        {
            this.name = name;
            this.data = data;
            this.type = type;
        }
        #endregion

        #region Public Members
        public string Name
        {
            get { return this.name; }
        }

        public string Type
        {
            get { return this.type; }
        }

        public byte[] GetData()
        {
            return this.data;
        }
        #endregion
    }
}
